// mock.js
import Mock from 'mockjs';

export const login = Mock.mock('/api/login', 'post', () => {
  return {
    code: 200,
    data: {
      id: 1,
      username: 'test',
      token: 'abcdefg'
    }
  };
});

export const register = Mock.mock('/api/register', 'post', () => {
  return {
    code: 200,
  };
});